﻿#include "Utils.h"
#include<iostream>
utils::utils()
{

}

void isMoveFinsih(QByteArray respone, bool &move_finish, bool &move_error)
{
  if((respone.data()[4]==0x6D)&&(respone.data()[5]==0x6C)){
    move_finish = true;
    move_error = true;
    std::cout<<"move error";
    printf("  %x    %x  \n", respone.data()[4]&0xff, respone.data()[5]&0xff);
  }
  if((respone.data()[4]==0x6B)&&(respone.data()[5]==0x6F)){
    move_finish = true;
    move_error = false;
    std::cout<<"move finish";
    printf("  %x    %x  \n", respone.data()[4]&0xff, respone.data()[5]&0xff);
  }
}

